package com.pasabahceambalaj.session;

import com.pasabahceambalaj.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("parabirimHome")
public class ParabirimHome extends EntityHome<Parabirim> {

	public void setParabirimId(Long id) {
		setId(id);
	}

	public Long getParabirimId() {
		return (Long) getId();
	}

	@Override
	protected Parabirim createInstance() {
		Parabirim parabirim = new Parabirim();
		return parabirim;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public Parabirim getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
